package com.gdyx.app.web.dao;

import com.gdyx.app.web.model.MpsDeptRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Y_Coffee on 2017/8/4.
 */
@Mapper
public interface MpsDeptRoleDao extends BaseDao {
    List<MpsDeptRole> findDeptRoles(Map<String, Object> map);

    List<MpsDeptRole> findDeptRoleByRid(String id);

    List<MpsDeptRole> findDeptRoleByDid(String id);

    void deleteByRid(String id);

    void deleteByDid(String id);

    MpsDeptRole  findDeptRolesByDeptIdAndRoleId(@Param("deptId") String deptId,@Param("roleId") String roleId);
}
